package main

import "fmt"
import "strings"

func main() {
	a := "abc exit status 1"
	b := strings.TrimRight(a, "exi atus 1")
	fmt.Println("b=",b)

	a = "naa.0x1234"
	b = strings.TrimLeft(a, "naa.")
	fmt.Println("b=",b)

	a = "naa.ax1234"
	b = strings.TrimPrefix(a, "naa.")
	fmt.Println("b=",b)

	a = "abe exit status 1"
	b = strings.TrimSuffix(a, "exit status 1")
	fmt.Println("b=",b)
	fmt.Println(len(b))
}
